package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.wemedia.mapper.WmChannelMapper;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;


public interface WmChannelService extends IService<WmChannel> {

    /**
     * 频道列表查询
     * @return
     */
    public ResponseResult findAll();


    /**
     * 新增频道
     * @param adChannel
     * @return
     */
    ResponseResult saveChannel(AdChannel adChannel);


    /**
     * 频道列表分页查询
     * @param channelDto
     * @return
     */
    public ResponseResult list(ChannelDto channelDto);


    /**
     * 删除频道
     * @param id
     * @return
     */
    public ResponseResult del(@PathVariable("id") Integer id);


    /**
     * 更新频道
     * @param adChannel
     * @return
     */
    public ResponseResult update(@RequestBody AdChannel adChannel);

}
